package com.aier.user.entity;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

import com.aier.common.common.Constant;

/**
 * 关注实体
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "follow", catalog = "abc")
public class Follow implements java.io.Serializable {

    // 标识
    private Long foid;
    // 用户id
    private Long uid;
    // 被关注用户id
    private Long fuid;
    // 分组id(0默认分组--特别关注；-1未分组）
    private Long fgid;
    // 备注名
    private String remark;
    // 关注状态：1已关注；2互相关注
    private Short state;
    // 时间
    private Timestamp cdate;
    
    // 昵称
    private String nickname;
    // 头像
    private String headimg;
    // 分组名
    private String fgName;
    // 个人简介
    private String desinfo;
    // 关注类型（已关注，互相关注）
    private String followStr;
    
    
    // 状态类型(密友,等待确认中)
    private String stateStr;
    // 被关注人的昵称和头像
    private String account;
    private String fnickname;
    private String fheadimg;
    private String sex; // 性别
    private String address; // 地址
    private Integer age;  // 年龄
    private int relation; //1：同班  2：同校
    // Constructors

  

	/** default constructor */
    public Follow() {
    }

    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "foid", unique = true, nullable = false)
    public Long getFoid() {
        return this.foid;
    }

    public void setFoid(Long foid) {
        this.foid = foid;
    }
    @Column(name = "uid", nullable = false, length = Constant.num_20)
    public Long getUid() {
        return uid;
    }

    public void setUid(Long uid) {
        this.uid = uid;
    }
    @Column(name = "fuid", nullable = false, length = Constant.num_20)
    public Long getFuid() {
        return fuid;
    }

    public void setFuid(Long fuid) {
        this.fuid = fuid;
    }
    @Column(name = "fgid", nullable = false, length = Constant.num_20)
    public Long getFgid() {
        return fgid;
    }

    public void setFgid(Long fgid) {
        this.fgid = fgid;
    }
    @Column(name = "cdate")
    public Timestamp getCdate() {
        return cdate;
    }

    public void setCdate(Timestamp cdate) {
        this.cdate = cdate;
    }
    @Column(name = "remark")
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
    @Column(name = "state")
    public Short getState() {
        return state;
    }

    public void setState(Short state) {
        this.state = state;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getHeadimg() {
        return headimg;
    }

    public void setHeadimg(String headimg) {
        this.headimg = headimg;
    }

    public String getFgName() {
        return fgName;
    }

    public void setFgName(String fgName) {
        this.fgName = fgName;
    }

    public String getDesinfo() {
        return desinfo;
    }

    public void setDesinfo(String desinfo) {
        this.desinfo = desinfo;
    }

    public String getFollowStr() {
        return followStr;
    }

    public void setFollowStr(String followStr) {
        this.followStr = followStr;
    }

    public String getStateStr() {
        return stateStr;
    }

    public void setStateStr(String stateStr) {
        this.stateStr = stateStr;
    }

    public String getFnickname() {
        return fnickname;
    }

    public void setFnickname(String fnickname) {
        this.fnickname = fnickname;
    }

    public String getFheadimg() {
        return fheadimg;
    }

    public void setFheadimg(String fheadimg) {
        this.fheadimg = fheadimg;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
    
    public int getRelation() {
  		return relation;
  	}

  	public void setRelation(int i) {
  		this.relation = i;
  	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

  	
}